<?php
// 获取单个商铺信息
require $this->website['path']['action'] . '/admin/islogin.php';
$json = array('status' => 'error', 'msg' => '', 'data' => []);

$id = fn_post('id');

if (!$id || !is_numeric($id)) {
	$json['msg'] = '错误编号';
} else {
	$json['status'] = 'ok';
	$json['data']['shops'] = $this->website['class']['db']
		->table('shops')
		->where('id=?', $id)
		->one();
}

$this->json_encode($json);